html,
body,
h1,
h2 {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    place-items: center;
    overflow: hidden;
    font-family: "Trebuchet MS";
    font-size: 16px;
    color: #1e293b;
    background-color: #f8fafc;
    user-select: none;
}

#app {
    width: 960px;
    height: 660px;
    margin: auto;
    display: flex;
    position: relative;
}

main {
    width: 100%;
    display: flex;
    position: relative;
    padding: 50px 40px;
}

.sudoku {
    position: relative;
    width: 560px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    margin-left: 40px;
    flex-grow: 1;
}

.board-container {
    max-width: 600px;
    position: relative;
    margin: 0 4px 4px 0;
}

.board-container::after {
    display: block;
    content: "";
    padding-bottom: 100%;
    width: 100%;
    box-sizing: border-box;
}

.board {
    border: 2px solid #0f172a;
    border-collapse: collapse;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: block;
}

.board tbody {
    display: block;
    width: 100%;
    height: 100%;
}

.board-row {
    display: flex;
    height: calc(100% / 9);
    padding: 0;
    margin: 0;
}

.board-col {
    position: relative;
    border-right: 1px solid #64748b;
    border-bottom: 1px solid #64748b;
    flex-basis: calc(100% / 9);
    padding: 0;
    margin: 0;
}

.board-row:last-child .board-col {
    border-bottom: 0;
}

.board-col:last-child {
    border-right: 0;
}

.board-row:nth-child(3n):not(:last-child) .board-col {
    border-bottom: 2px solid #0f172a;
}

.board-col:nth-child(3n):not(:last-child) {
    border-right: 2px solid #0f172a;
}

.board-cell {
    cursor: pointer;
}

.cell-value {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 101;
    font-size: 36px;
    font-weight: 400;
    color: #3b82f6;
}

.cell-subject .cell-value {
    color: #334155;
}

.cell-incorrect {
    background-color: #fee2e2;
}

.cell-incorrect .cell-value {
    color: #ef4444;
}

.bg-mistaken {
    background-color: #fee2e2;
}

/* .cell-prompted {
    background-color: #dcfce7;
} */

.cell-prompted .cell-value {
    color: #16a34a;
}

.cell-highlight {
    background-color: #e2e8f0;
}

.cell-samed {
    background-color: #cbd5e1;
}

.cell-selected {
    background-color: #bfdbfe;
}

.cell-notes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
    z-index: 100;
    position: relative;
    color: #64748b;
}

.cell-notes .notes-item {
    font-size: 14px;
    flex-basis: calc(100% / 3);
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}


.header {
    display: flex;
    justify-content: space-between;
    height: 40px;
    overflow: hidden;
}

.header .logo {
    height: 40px;
}

.header .side {
    display: flex;
}

.header .side .help {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
}

.header .side .help:hover {
    background-color: #e2e8f0;
}

.header .side .btn {
    width: 24px;
    height: 24px;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid #94a3b8;
    background-color: #e2e8f0;
}

.header .side .btn:hover {
    background-color: #dbeafe;
}

.header .side-exit {
    justify-content: right;
}

.header .btn-exit:hover {
    background-color: #ef4444;
}

.header h1 {
    flex-grow: 1;
}

.keyboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 10px;
    flex-grow: 1;
}

.btn-num {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 600;
    background-color: #e2e8f0;
    color: #1e293b;
    border-radius: 8px;
    cursor: pointer;
}

.btn-num:active {
    background-color: #cbd5e1;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
}

.action-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.action-item .btn-action {
    border-radius: 100%;
    border: 2px solid transparent;
    background-color: #e2e8f0;
    width: 28px;
    height: 28px;
    padding: 14px;
    margin-bottom: 5px;
    position: relative;
    cursor: pointer;
}

.action-item .btn-action .badge {
    padding: 3px 6px;
    background-color: #1e293b;
    color: #fff;
    border-radius: 50px;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    position: absolute;
    top: -6px;
    left: 82%;
    transform: translate(-50%, 0);
}

.action-item .text {
    color: #94a3b8;
    font-size: 12px;
}

.action-item .btn-action:active {
    background-color: #cbd5e1;
}

.action-item.note .badge {
    background-color: #94a3b8;
}

.action-item .btn-action.note-active {
    border-color: #1e293b;
}

.action-item .btn-action.note-active .badge {
    background-color: #1e293b;
}

.timer {
    display: flex;
    background-color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    border: 2px dashed #94a3b8;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.timer .btn-pause {
    display: none;
    flex-direction: row;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 251, 235, .9);
    border-radius: 10px;
}

.btn-pause .icon {
    display: flex;
    align-items: center;
    margin-right: 2px;
}

.btn-pause .text {
    display: flex;
    align-items: center;
    font-size: 18px;
}

.timer:hover .btn-pause {
    display: flex;
}

.timer > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.timer .count {
    flex-grow: 1;
    font-size: 24px;
    font-weight: 600;
    margin: 0 20px;
}

.info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    color: #94a3b8;
}

.info label {
    margin-right: 10px;
}

.info b {
    color: #1e293b;
    font-weight: 600;
}

.info .prompted {
    color: #16a34a;
}

.info .mistaken {
    color: #ef4444;
}

.btn {
    --wails-draggable: no-drag;
    display: inline-flex;
    background-color: #e2e8f0;
    color: #1e293b;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
}

.btn:active {
    background-color: #cbd5e1;
}

.btn-dark {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: .5em 1em;
}

.btn-dark:active {
    background-color: #334155;
}

.mt-3 {
    margin-top: 24px;
}

.state-paused .cell-value {
    visibility: hidden;
}

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    place-items: center;
    overflow: hidden;
    background-color: rgba(241, 245, 249, .95);
    z-index: 999;
}

.dialog-main {
    width: 960px;
    height: 660px;
    margin: auto;
    display: flex;
    place-items: center;
    position: relative;
}

.dialog-content {
    width: 100%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dialog-content h2 {
    font-size: 32px;
    line-height: 1.4em;
    margin: 0;
}

.dialog-bg-pause {
    background-color: rgba(255, 251, 235, .95);
}

.dialog-bg-menu {
    background-color: rgba(239, 246, 255, .95);
}

.dialog-bg-successful {
    background-color: rgba(240, 253, 244, .95);
}

.dialog-bg-failure {
    background-color: rgba(254, 226, 226, .95);
}

.dialog .btn {
    --wails-draggable: no-drag;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px 20px;
    background-color: #1e293b;
    color: #fff;
    font-size: 18px;
}

.dialog .btn > i {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.dialog .btn-close {
    position: absolute;
    top: 50px;
    right: 40px;
    background-color: transparent;
    padding: 4px;
}

.dialog .btn-quit {
    position: absolute;
    bottom: 50px;
    right: 40px;
    background-color: #dc2626;
}

.dialog .btn-replay {
    position: absolute;
    bottom: 50px;
    left: 40px;
    background-color: #16a34a;
}

.dialog .btn-screenshot {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
}

.dialog i {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.levels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 25px;
    width: 88%;
    margin-top: 24px;
}

.levels .level-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 160px;
    background-color: #fff;
    font-size: 28px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    color: #1e293b;
    cursor: pointer;
}

.levels .level-item:hover {
    border-color: #94a3b8;
}

.levels .level-item.active {
    border-color: #1e293b;
}


.development-info {
    position: absolute;
    left: 40px;
    bottom: 18px;
    font-size: 14px;
    color: #94a3b8;
    width: calc(100% - 80px);
    display: flex;
    justify-content: space-between;
}

.development-info a {
    color: #94a3b8;
}

.development-info a:hover {
    color: #2563eb;
}

.help-content {
    width: 600px;
    height: 560px;
    overflow-y: scroll;
    line-height: 1.6em;
}

.help-content::-webkit-scrollbar {
    width: 5px;
}

.help-content>div{
    margin-bottom: 40px;
}

.help-content h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 1em;
}

.help-content h4 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 1em;
}

.help-content h3:not(:first-child) {
    margin-top: 1.5em;
}

.help-content li {
    margin-bottom: 0.5em;
}

.help-content p {
    margin-top: 0;
    margin-bottom: 1em;
    text-indent: 2em;
    text-align: justify;
}

.shortcuts table{
    width: 100%;
    border: unset;
}
.shortcuts table thead th{
    text-align: left;
}
.shortcuts table thead tr{
    background-color: #e2e8f0;
}
.shortcuts table tbody tr{
    background-color: #fff;
}
.shortcuts table tbody tr:nth-child(even){
    background-color: #e2e8f0;
}
.shortcuts table td,.shortcuts table th {
    padding: 5px 10px;
}